<!DOCTYPE html>

    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>主页面</title>
    </head>
<body>

<h3>欢迎$!{teacherName}来到主页面</h3>

#if( $teacherName )
<a href="/teacher/action/logout">退出</a>
#else
<a href="/teacher/page/login">登录</a>
#end

</body>
</html>